/**
 * @Aurhor 把手给我
 * @Date 2022/9/6 20:20
 * @Version 1.0
 * websoket配置类
 **/
package com.ft.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;


@Configuration
public class WebSoketConfig {
    @Bean
    //注入ServerEndpointExporter类对象，自动注册了加了@ServerEndpoint的bean
    public ServerEndpointExporter serverEndpointExporter(){
        return new ServerEndpointExporter();
    }
}
